
/*
This is a UI file (.ui.qml) that is intended to be edited in Qt Design Studio only.
It is supposed to be strictly declarative and only uses a subset of QML. If you edit
this file manually, you might introduce QML code that is not supported by Qt Design Studio.
Check out https://doc.qt.io/qtcreator/creator-quick-ui-forms.html for details on .ui.qml files.
*/
import QtQuick 2.15
import QtQuick.Controls 2.15
import Timer 1.0

import CustomTimer
Rectangle {
    width: Constants.width
    height: Constants.height
    property alias dial: dial
    property alias labelTotalTime: labelTotalTime
    property alias labelRemainingTime: labelRemainingTime
    property alias roundButtonPauseContinue: roundButtonPauseContinue
    property alias roundButtonStop: roundButtonStop
    property alias timer: timer
    property alias numberAnimation: numberAnimation

    RoundButton {
        id: roundButtonStop
        x: 190
        y: 2220
        width: 196
        height: 193
        text: "Stop"
        font.pixelSize: 60
    }

    RoundButton {
        id: roundButtonPauseContinue
        x: 852
        y: 2220
        width: 195
        height: 204
        text: "Pause"
        font.pixelSize: 60
    }

    Dial {
        id: dial
        x: 126
        y: 110
        width: 981
        height: 1111
        enabled: false
        value: 0
        snapMode: Dial.NoSnap
        wrap: false
        inputMode: Dial.Circular
        live: flase
        startAngle: 0
        endAngle: 360

        Label {
            id: labelRemainingTime
            x: 244
            y: 366
            width: 459
            height: 148
            text: "Label"
            font.pixelSize: 60
            horizontalAlignment: Text.AlignHCenter
            verticalAlignment: Text.AlignVCenter
        }

        Label {
            id: labelTotalTime
            x: 347
            y: 663
            width: 253
            height: 51
            text: qsTr("Label")
            font.pixelSize: 60
            horizontalAlignment: Text.AlignHCenter
            verticalAlignment: Text.AlignVCenter
        }
    }

    MyTimer {
        id: timer
        interval: 1000
        singleShot: false
    }
    NumberAnimation {
        id: numberAnimation
        target: dial
        property: "value"
        easing.type: Easing.Linear
    }
}
